<html>
<head>
	<title>Excersise 9</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
	var coordsX = new Array(1, 5, 2, 5, 1, 0, 4);
	var coordsY = new Array(1, 3, 2, 7, 8, 1, 3);
	for (var i = 0;i < 7;i++)
	{
        if ((((coordsX[i] - 1) * (coordsX[i] - 1)) + ((coordsY[i] - 1) * (coordsY[i] - 1))) <= 9)
        {
            if ((coordsX[i] < -1) || (coordsY[i] > 1) || (coordsY[i] < -1))
            {
                jsConsole.writeLine("point: (" + coordsX[i] + "," + coordsX[i] + ") inside the circle and outside the rectangle");
            }
            else
            {
                jsConsole.writeLine("point: (" + coordsX[i] + "," + coordsX[i] + ") inside the circle but allso inside the rectangle");
            }
 				jsConsole.writeLine("point: (" + coordsX[i] + "," + coordsX[i] + ") point with coordinates NOT in the circle");
        }
        else
        {
			jsConsole.writeLine("point: (" + coordsX[i] + "," + coordsX[i] + ") point with coordinates NOT in the circle");
        }
	}
	</script>
</body>
</html>
